
<HTML>
	<HEAD>
		<LINK href="styles/settings.css" rel="stylesheet" type="text/css">
		<SCRIPT language="javascript" src="scripts/settings.js"></SCRIPT>	
	</HEAD>
	
	<BODY onLoad="loadSettings()">
		
		<table>	
		<tr><td width="48"><label for="server">Server:</label></td><td width="306" colspan="5"><input type="text" name="serverURL" id="serverURL"/></td></tr>
		<tr>
		  
		  
		  </td></tr>
		
		<tr>
          <td></td>
          <td colspan="5">
            <fieldset><legend> 
				<input type="checkbox" id="auth" name="auth" onclick="markDirty()"/> 
				<label for="auth">Use authentication</label> 
			</legend>  <table> 
				<tr> 
					<td><label for="username">Username</label></td> 
					<td><input type="text" id="username" name="username" /></td> 
				</tr> 
				<tr> 
					<td><label for="password">Password</label></td> 
					<td><input type="password" id="password_" name="password_" /></td> 
				</tr> 
			</table> </fieldset>          
          <tr><td></td><td colspan="5"><input type="button" name="retrieveProjects" id="retrieveProjects" value="Get Projects" style="width:auto;" onClick="retrieveProjects();">
		<tr><td><label for="projects">Projects:</label></td>
		<td colspan="5"><SELECT disabled="true" name="projectsFromHudson" id="projectsFromHudson" /></SELECT></td></tr>
		<tr><td></td><td colspan="5"><input type="button" name="addProject" id="addProject" value="Add Project" style="width:auto;" onClick="addProject();"></td></tr>
		<tr><td colspan="6" style="height:15px;"></td></tr>
		<tr><td><label for="projects">Projects:</label></td>
		<td colspan="5"><SELECT name="projectsToDelete" id="projectsToDelete"/></SELECT></td></tr>
		<tr><td></td><td colspan="5"><input type="button" name="deleteProject" id="deleteProject" value="Delete Project" style="width:auto;" onClick="deleteExistingProject();"></td></tr>
	<span id="errorMessage"></span>
		</span>
		</td></tr>
		
		<tr><td colspan="6" style="height:15px;"></td></tr>
		<tr><td><label for="projectRefresh">Refresh:</label></td>
		<td colspan="5"><SELECT name="projectRefresh" id="projectRefresh">
				<OPTION value="60000">every minute</OPTION>
				<OPTION value="600000">every 10 minutes</OPTION>
				<OPTION value="-1" SELECTED>only next time the gadget is started</OPTION>
		</SELECT></td></tr>		
		<tr><td colspan="6" style="height:15px;"></td></tr>
		<tr><td><STRONG>Site:</STRONG></td><td colspan="5"><a href="http://code.google.com/p/hudsonmonitor/">http://code.google.com/p/hudsonmonitor/</a></td></tr>

		</table>		
		
	</BODY>
</HTML>

